package com.clwl.supervise.superviseapp.entity.risk;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
    * 静态分值评定项目
    */
@Data
@TableName(value = "JG_STATIC_PROJECT")
//@KeySequence("JG_STATIC_PROJECT_SQE")
public class JgStaticProject implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 所属环节
     */
    @TableField(value = "SUP_PROCESS")
    private String supProcess;

    /**
     * 食品销售id
     */
    @TableField(value = "SPXS_ID")
    private Long spxsId;

    /**
     * 餐饮服务id
     */
    @TableField(value = "CYFW_ID")
    private Long cyfwId;

    /**
     * 项目名称
     */
    @TableField(value = "PROJECT_NAME")
    private String projectName;

    /**
     * 分数
     */
    @TableField(value = "SCORE")
    private Double score;

    /**
     * 上级id
     */
    @TableField(value = "PARENT_ID")
    private Long parentId;

    /**
     * 项目级别
     */
    @TableField(value = "PROJECT_LEVEL")
    private Long projectLevel;

    /**
     * 分值表最终级别
     */
    @TableField(value = "FINAL_LEVEL")
    private Long finalLevel;

    /**
     * 排序
     */
    @TableField(value = "SORT")
    private Long sort;

    /**
     * 备注
     */
    @TableField(value = "REMARKS")
    private String remarks;

    /**
     * 静态分值评定表id
     */
    @TableField(value = "STATIC_SCORING_ID")
    private Long staticScoringId;


    /**
     * 是否模板：0-否，1-是
     */
    @TableField(value = "IS_TEMPLATE")
    private String isTemplate;

    /** 是否必选：0-否，1-是 */
    private String isRequired;

    /** 是否必选：0-否，1-是 */
    private String isMultiple;


    @TableField(exist = false)
    private Double scoreValue;


    @TableField(exist = false)
    private List<JgStaticScore> scoreList = new ArrayList<>();


    @TableField(exist = false)
    private List<Map<String,Object>> scoreMapList = new ArrayList<>();

    private static final long serialVersionUID = 1L;
}
